import React from 'react';
import Icon from 'react-native-vector-icons/AntDesign';

const IconButton = ({name, size, color, onPress}) => {
  return <Icon name={name} size={size} color={color} onPress={onPress} />;
};

IconButton.defaultProps = {
  size: 20,
  color: '#000',
};
export default IconButton;
